﻿using Lanbt.Core.Entity.Enums;
using System.ComponentModel.DataAnnotations;

namespace Lanbt.Core.Entity.Dto.lanbt_power
{
    public class QueryPagedPowerListInput : PagesField
    {
        /// <summary>
        /// 状态 null：全部 true：启用 false：禁用
        /// </summary>
        public bool? Status { get; set; }

        /// <summary>
        /// 显示状态 null：全部 true：显示 false：隐藏
        /// </summary>
        public bool? ShowType { get; set; }

        /// <summary>
        /// 权限名称
        /// </summary>
        public string? Name { get; set; }

        /// <summary>
        /// 父节点
        /// </summary>
        [RegularExpression(@"^[0-9]*$", ErrorMessage = "父节点ID请输入数字")]
        public string? ParentID { get; set; }

        /// <summary>
        /// 菜单编码
        /// </summary>
        public string? MenuCode { get; set; }

        /// <summary>
        /// 权限类型
        /// </summary>
        public PowerType PowerType { get; set; }
    }
}
